include Rules.make

all:
	$(MAKE) config  -C bsp-linux-am335x
	$(MAKE) build   -C bsp-linux-am335x
	$(MAKE) install -C bsp-linux-am335x
	$(MAKE) config  -C rootfs-debian
	$(MAKE) build   -C rootfs-debian
	$(MAKE) install -C rootfs-debian
	$(MAKE) config  -C rootfs-tslib-1.4
	$(MAKE) build   -C rootfs-tslib-1.4
	$(MAKE) install -C rootfs-tslib-1.4
	$(MAKE) config  -C rootfs-qt-4.8.6
	$(MAKE) build   -C rootfs-qt-4.8.6
	$(MAKE) install -C rootfs-qt-4.8.6
	$(MAKE) config  -C app-demos
	$(MAKE) build   -C app-demos
	$(MAKE) install -C app-demos

download:
	git clone https://git.oschina.net/allOFsbc/arm-linux-gnueabihf-4.9.1.git
	#cd arm-linux-gnueabihf-4.9.1 && git checkout 8bb2002e9
	#rm -rf arm-linux-gnueabihf-4.9.1/.git
	git clone https://git.oschina.net/allOFsbc/host-bin.git
	#cd host-bin && git checkout d0998d322
	#rm -rf host-bin/.git
	git clone https://git.oschina.net/allOFsbc/bsp-linux-am335x.git
	#cd bsp-linux-am335x && git checkout c80135762
	#rm -rf bsp-linux-am335x/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-debian.git
	#cd rootfs-debian && git checkout 5756e1479
	#rm -rf rootfs-debian/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-tslib-1.4.git
	#cd rootfs-tslib-1.4 && git checkout 43adfe0e4
	#rm -rf rootfs-tslib-1.4/.git
	git clone https://git.oschina.net/allOFsbc/rootfs-qt-4.8.6.git
	#cd rootfs-qt-4.8.6 && git checkout 583430a19
	#rm -rf rootfs-qt-4.8.6/.git
	git clone https://git.oschina.net/am335xOFgjdw/app-demos.git
	#cd app-demos && git checkout 4a2190f6c 
	#rm -rf app-demos/.git
